package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.nursing.domain.FamilyMemberElder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.ElderAddDto;
import com.zzyl.nursing.vo.ElderBindedVo;
import com.zzyl.nursing.vo.FamilyMemberAndElderVo;

import javax.servlet.http.HttpServletRequest;

/**
 * 客户老人关联Service接口
 *
 * @author ruoyi
 * @date 2025-10-20
 */
public interface IFamilyMemberElderService extends IService<FamilyMemberElder> {
    /**
     * 查询客户老人关联
     *
     * @param id 客户老人关联主键
     * @return 客户老人关联
     */
    public FamilyMemberElder selectFamilyMemberElderById(Long id);

    /**
     * 查询客户老人关联列表
     *
     * @param familyMemberElder 客户老人关联
     * @return 客户老人关联集合
     */
    public List<FamilyMemberElder> selectFamilyMemberElderList(FamilyMemberElder familyMemberElder);

    /**
     * 新增客户老人关联
     *
     * @param elderAddDto 客户老人关联
     * @return 结果
     */
    public boolean insertFamilyMemberElder(ElderAddDto elderAddDto);

    /**
     * 修改客户老人关联
     *
     * @param familyMemberElder 客户老人关联
     * @return 结果
     */
    public int updateFamilyMemberElder(FamilyMemberElder familyMemberElder);

    /**
     * 批量删除客户老人关联
     *
     * @param ids 需要删除的客户老人关联主键集合
     * @return 结果
     */
    public int deleteFamilyMemberElderByIds(Long[] ids);

    /**
     * 删除客户老人关联信息
     *
     * @param id 客户老人关联主键
     * @return 结果
     */
    public int deleteFamilyMemberElderById(Long id);

    /**
     * 在Controller层使用startPage()进行拦截
     * @return
     */
    public List<ElderBindedVo> listAll();

    /**
     * 列出家属和老人的简要信息
     * @return
     */
    public  List<FamilyMemberAndElderVo> listBriefInfo();
}
